<template>
    <FloatWin ref="floatWinRef" :is-in-mid="true" :dragbar-height="40" :prohibit-resize="true" :default-width="600"
        :default-height="500" :min-width="600" drag-bar-ele-id="chatDargBar">
        <template #dragbar>
            <ChatPannelHeader :close="close" />
        </template>
        <template #main>
            <ChatPannelMain :close="close" />
        </template>
    </FloatWin>
</template>

<script setup lang="ts">
import FloatWin from "@/UtilComponents/FloatWin.vue";
const floatWinRef = ref<InstanceType<typeof FloatWin>>()
const close = () => {
    (floatWinRef.value as any).isShow = false
}
const open = () => {
    (floatWinRef.value as any).isShow = true
}
onMounted(() => {
    close()
})
defineExpose({
    open
})
</script>


<style scoped lang="less"></style>
